-- GENERATED SPELL FOR [Shadowshard Smasher] --


function spell0_11778(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(10101,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11778', 685, 1)
end

function spell1_11778(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11778', 2347, 1)
end

function Sorts_11778(pUnit, Event)
local choix_sorts_11778 = math.random(0, 1)
if choix_sorts_11778 == 0 then
pUnit:RegisterEvent('spell0_11778', 1, 1)
end
if choix_sorts_11778 == 1 then
pUnit:RegisterEvent('spell1_11778', 1, 1)
end
end

function mob11778_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11778', math.random(1500, 3000), 1)
end

function mob11778_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11778_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11778_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11778, 1, 'mob11778_Action')
RegisterUnitEvent(11778, 2, 'mob11778_Leave')
RegisterUnitEvent(11778, 3, 'mob11778_Kill')
RegisterUnitEvent(11778, 4, 'mob11778_Die')
